﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;

namespace Sample
{
    public class MvcApplication : System.Web.HttpApplication
    {
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();
            RouteConfig.RegisterRoutes(RouteTable.Routes);
        }
        protected void Application_PreRequestHandlerExecute()
        {
            //BetterTempData Purge
            if (HttpContext.Current.Session != null)
            {
                Better.TempData.HandleEndRequest();
            }
        }
    }
}
